//
// Created by 吴锐 on 2022/2/27.
//

#include "iostream"

using namespace std;

template<class T>
void mySwap(T &a, T &b) {
    T temp = a;
    a = b;
    b = temp;
}

void test01() {
    int a = 10;
    int b = 20;
    char c = 'c';
//    mySwap(a, c);
    mySwap(a, b);
    cout << a << endl;
    cout << b << endl;
}

template<class T>
void func() {
    cout << "调用" << endl;
}

void test02() {
    func<int>();
}

int main() {
//    test01();
    test02();
    return 0;
}